package behavior.iterator;

public class IteratorPattern {
	public static void main(String[] args) {
		Container c = new NameRepository(); 
		
		for(Iterator i=c.getIterator();i.hasNext();){	
			
			System.out.println(i.next());
		}
		
	}
}
